package com.crm.service.companyInvoiceManager;

import com.crm.model.entity.companyInvoiceManager.SysCompanyInvoice;
import com.crm.model.vo.companyInvoiceManager.CompanyInvoiceListPageVO;
import com.crm.model.vo.companyInvoiceManager.CompanyInvoiceVO;

import java.util.List;

/**
 * @Author:chaifuyou
 * @Date: 2021/4/26 10:17
 */
public interface CompanyInvoiceDbService {

    /**
     * 根据当前登录人公司获取该公司可以选择开发票的公司列表
     * @param companyId
     * @return
     */
    List<CompanyInvoiceVO> getCompanyListByCompanyId(String companyId);

    /**
     * 税盘管理列表
     * @param companyName
     * @return
     */
    List<CompanyInvoiceListPageVO> getCompanyList(String companyName);

    /**
     * 根据公司id 删除税盘设置
     * @param companyId
     */
    void delTaxDisc(String companyId);

    /**
     * 添加税盘设置
     * @param sysCompanyInvoice
     */
    void saveTaxDisc(SysCompanyInvoice sysCompanyInvoice);

    /**
     * 查询是否有税盘
     * @param companyId
     * @return
     */
    Integer selectTaxCountByCompanyId(String companyId);
}
